From c87dafbd403f8d44dad5f9eccedc64033596bdbf Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 15 Sep 2010 08:18:53 +0100 Subject: [PATCH] notify_via_xen_event_channel() should check for dying domain. Else we can fail on either ASSERTion in that function. From: Olaf Hering Signed-off-by: Keir Fraser --- xen/common/event_channel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index c6241d0598..f4a2c24d7a 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -1030,6 +1030,12 @@ void notify_via_xen_event_channel(struct domain *ld, int lport) spin_lock(&ld->event_lock); + if ( unlikely(ld->is_dying) ) + { + spin_unlock(&ld->event_lock); + return; + } + ASSERT(port_is_valid(ld, lport)); lchn = evtchn_from_port(ld, lport); ASSERT(lchn->consumer_is_xen); -- 2.30.2